package com.yonyou.brigade.third_parties.tuniu.controller;

import com.yonyou.brigade.third_parties.tuniu.service.ITuniuOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/tuniu")
public class TuniuOrderTestController {

    @Autowired
    @Qualifier("tuniuOrderServiceImpl")
    private ITuniuOrderService TuniuOrderService;

    @RequestMapping(value = "/getTuniuOrderList",method = RequestMethod.POST)
    public void testOrders() {
        String tenant = "ft9fbcrw";
        String orgpk = "0001A210000000003ADC";
        String begin = "2018-11-01";
        String end = "2018-11-20";
        int channelId = 35;
        TuniuOrderService.getTuniuOrderList(tenant, orgpk,  begin, end, 1, 10, channelId);
    }
}
